package com.codeczx.myretrofitdemo.retrofit;

import java.lang.annotation.Annotation;
import java.lang.reflect.Type;

import okhttp3.ResponseBody;

/**
 * Created by codeczx on 2018/3/27.
 */

public interface Converter<F,T> {

    T convert(F value);

    abstract class Factory{
        Converter<?,String> stringConverter(Type type,Annotation[] annotations,Retrofit retrofit){
            return null;
        }

        Converter<ResponseBody,?> responseBodyConverter(Type type,Annotation[] annotations,Retrofit retrofit){
            return null;
        }
    }


}
